package org.gdtc.storefront.service;

import org.gdtc.storefront.entity.Bannerpicture;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@RequestMapping("/BannerpictureService")
public interface BannerpictureService {
    @RequestMapping("/deleteByPrimaryKey")
    int deleteByPrimaryKey(@RequestParam("id") Integer id);

    @RequestMapping("/insert")
    int insert(Bannerpicture record);

    @RequestMapping("/selectByPrimaryKey")
    Bannerpicture selectByPrimaryKey(Integer id);

    @RequestMapping("/selectAll")
    List<Bannerpicture> selectAll(@RequestParam("storeid") Integer storeid);

    @RequestMapping("/updateByPrimaryKey")
    int updateByPrimaryKey(Bannerpicture record);

    @RequestMapping("/InsBanner")
    int InaBanner(@RequestBody Bannerpicture bannerpicture);

    @RequestMapping("/UpdState")
    int UpdState(@RequestParam("state") Integer state,
                 @RequestParam("id") Integer id);

}
